package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户绑定对象 indsvr_sso_app_user_map
 * 
 * @author indsvr
 * @date 2025-07-04
 */
public class IndsvrSsoAppUserMap extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 应用ID */
    @Excel(name = "应用ID")
    private Long appId;

    /** 本地用户 */
    @Excel(name = "本地用户")
    private Long userId;

    /** 远程用户 */
    @Excel(name = "远程用户")
    private String username;

    /** 远程密码（仅模拟登陆使用） */
    @Excel(name = "远程密码", readConverterExp = "仅=模拟登陆使用")
    private String password;

    /** 授权码 或 模拟登陆字段 */
    @Excel(name = "授权码 或 模拟登陆字段")
    private String authCode;

    /** 重定向地址 */
    @Excel(name = "重定向地址")
    private String redirect;
    private String state;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAppId(Long appId) 
    {
        this.appId = appId;
    }

    public Long getAppId() 
    {
        return appId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setAuthCode(String authCode) 
    {
        this.authCode = authCode;
    }

    public String getAuthCode() 
    {
        return authCode;
    }
    public void setRedirect(String redirect) 
    {
        this.redirect = redirect;
    }

    public String getRedirect() 
    {
        return redirect;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("id", getId())
            .append("appId", getAppId())
            .append("userId", getUserId())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("authCode", getAuthCode())
            .append("redirect", getRedirect())
            .toString();
    }
}
